package cn.group.service.impl;

import cn.group.mapper.InformationMapper;
import cn.group.service.InformationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pojo.entity.ImgDo;
import pojo.entity.Information;

import java.util.List;

@Service
public class InformationServiceImpl implements InformationService {
    @Autowired
    InformationMapper informationMapper;

    @Override
    public int insert(Information information) {
        return informationMapper.insert(information);
    }

    @Override
    public int deleteById(Long informationId) {
        return informationMapper.deleteById(informationId);
    }

    @Override
    public Information selectById(Long informationId) {
        return informationMapper.selectById(informationId);
    }

    @Override
    public List<Information> selectByCategoryId(Long categoryId) {
        return informationMapper.selectByCategoryId(categoryId);
    }

    @Override
    public List selectList() {
        return informationMapper.selectList();
    }

    @Override
    public int updateStatusById(Information information) {
        return informationMapper.updateStatusById(information);
    }

    @Override
    public List dimSelectList(Information information) {
        return informationMapper.dimSelectList(information);
    }

    @Override
    public int updateByInformationId(Information information) {
        return informationMapper.updateByInformationId(information);
    }

    @Override
    public int viewCount(Information information) {
        return informationMapper.viewCount(information);
    }

    @Override
    public List viewList() {
        return informationMapper.viewList();
    }

    @Override
    public List paging(Information information) {
        return informationMapper.paging(information);
    }

    @Override
    public List selectTenList() {
        return informationMapper.selectTenList();
    }

    @Override
    public int saveDateToImgPath(ImgDo imgDo) {
        return informationMapper.saveDateToImgPath(imgDo);
    }
}
